<?php
return array(
    'login'=>array(
        'not_find_code'=>array('code'=>201,'msg'=>'请传入code'),
        'need_login'=>array('code'=>1000,'msg'=>'请登录'),
    ),
    'user'=>array(
        'regNft'=>array(
            'have_nft'=>array('code'=>-2002,'msg'=>'已注册钱包'),
        ),
        'getOtherWriter'=>array(
            'not'=>array('code'=>-3001,'msg'=>'用户非作家'),
        ),
        'getOtherCollectors'=>array(
            'not'=>array('code'=>-3001,'msg'=>'用户非藏家'),
        ),
    ),
    'opus'=>array(
        'select'=>array(
            'not_find'=>array('code'=>404,'msg'=>'作品不存在'),
            'off'=>array('code'=>-3001,'msg'=>'作品已下架'),
        ),
    ),
    'opusNumber'=>array(
        'select'=>array(
            'not_find'=>array('code'=>404,'msg'=>'作品编号不存在'),
            'opus_not_find'=>array('code'=>404,'msg'=>'作品不存在'),
            'off'=>array('code'=>-3001,'msg'=>'作品编号已下架'),
        ),
        'lock'=>array('code'=>-1005,'msg'=>'已被锁定'),
    ),
    'createOpusNumber'=>array(
        'no_collectors'=>array('code'=>-501,'msg'=>'作品没有对应藏家'),
        'userEqual'=>array('code'=>-502,'msg'=>'不能购买自己的藏品'),
        'noOwner'=>array('code'=>-503,'msg'=>'该藏品没有藏家'),
        'WriterCannotBuy'=>array('code'=>-503,'msg'=>'作家不能购买自己的作品'),
    ),
    'orderOpus'=>array(
        'lock'=>array('code'=>-4001),
        'create'=>array(
            'error'=>array('code'=>-4002,'msg'=>'有编码已被购买或选中，请重试'),
            'no_writer'=>array('code'=>-4003,'msg'=>'作品没有对应作家'),
            'opusNumberNotFind'=>array('code'=>-4004,'msg'=>'作品编号不存在'),
            'needPayOrder'=>array('code'=>-4004,'msg'=>'有待支付订单'),
            'hasOwner'=>array('code'=>-4005,'msg'=>'该作品已被购买'),

        ),
        'pay'=>array(
            'cancel'=>array('code'=>-4003,'msg'=>'订单已取消'),
            'paid'=>array('code'=>-4004,'msg'=>'订单已支付'),
            'opusError'=>array('code'=>-4005,'msg'=>'作品发送错误'),
            'changeOwner'=>array('code'=>-4005,'msg'=>'藏家已发生变化，无法购买'),
        ),
    ),
    'createOpus'=>array(
        'authority'=>array('code'=>-501,'msg'=>'用户非作家，不能创建'),
        'number_error'=>array('code'=>-502,'msg'=>'作品数量不合规'),
        'eachPrice_error'=>array('code'=>-503,'msg'=>'作品数量对应的价格不合规'),
        'noOpusSeries'=>array('code'=>-504,'msg'=>'作品分类不存在'),
        'error'=>array('code'=>-521,'msg'=>'操作失败'),
    ),
    'updateOpus'=>array(
        'hasOrder'=>array('code'=>-601,'msg'=>'作品已有订单，无法修改'),
        'selected'=>array('code'=>-602,'msg'=>'作品已有订单创建，无法修改'),
        'number_error'=>array('code'=>-5002,'msg'=>'作品数量不合规'),
        'eachPrice_error'=>array('code'=>-5003,'msg'=>'作品数量对应的价格不合规'),
        'error'=>array('code'=>-5201,'msg'=>'操作失败'),
    ),
    'updateOpusNumber'=>array(
        'isDelivery'=>array('code'=>-601,'msg'=>'已交割，无法修改'),
    ),
    'delivery'=>array(//作品编号交割
        'isDelivery'=>array('code'=>-601,'msg'=>'已交割，无法再次交割'),
        'isSell'=>array('code'=>-602,'msg'=>'售卖中，无法交割'),
    ),
    'giveVerify'=>array(//作品编号赠送
        'isDelivery'=>array('code'=>-601,'msg'=>'已交割，无法赠送'),
        'isSell'=>array('code'=>-602,'msg'=>'售卖中，无法赠送'),
        'isAudit'=>['code'=>-602,'msg'=>'审核中，无法赠送'],
        'notOwner'=>array('code'=>-603,'msg'=>'不能赠送非自己的藏品'),
        'wordsTooLong'=>array('code'=>-604,'msg'=>'字数不能超过50个字'),
    ),
    'receiveGift'=>array(//作品编号领取赠送
        'isReceived'=>array('code'=>-601,'msg'=>'手慢了一步，作品已被领取'),
        'notGiveUser'=>array('code'=>-602,'msg'=>'手慢了一步，作品已被领取'),
        'isSell'=>array('code'=>-603,'msg'=>'作品已上架，不能领取'),
        'isDelivery'=>array('code'=>-605,'msg'=>'已交割，无法领取'),
        'isAudit'=>['code'=>-602,'msg'=>'审核中，无法领取'],
        'isWriter'=>array('code'=>-606,'msg'=>'发生错误'),
        'notNft'=>array('code'=>-607,'msg'=>'发生会错误，请联系客服'),
        'repeat'=>array('code'=>-608,'msg'=>'30秒内不能重复提交请求'),
    ),
    'OrderDetail'=>array(//买入订单详情
        'noBuyer'=>array('code'=>-601,'msg'=>'不能查看非自己的订单'),
        'noSeller'=>array('code'=>-601,'msg'=>'不能查看非自己的订单'),
    ),
    'Head'=>array(
        'bind'=>array(
            'haveHead'=>array('code'=>-701,'msg'=>'已有所属团长'),
            'isHead'=>array('code'=>-702,'msg'=>'团长不能成为团员'),
        ),
    ),
    'auction'=>array(//拍卖相关
        'bidding'=>array(
            'notStarted'=>array('code'=>-701,'msg'=>'未开始'),
            'removed'=>array('code'=>-702,'msg'=>'已下架'),
            'hasEnded'=>array('code'=>-703,'msg'=>'已结束'),
            'notSetps'=>array('code'=>-704,'msg'=>'非阶梯式竞价'),
            'notHighest'=>array('code'=>-704,'msg'=>'竞价金额并非最高'),
        ),
    ),
    'shake'=>array(//摇一摇
        'Completed'=>array('code'=>-801,'msg'=>'已经领取奖励了哦'),
        'maxNum'=>array('code'=>-802,'msg'=>'已达到最大次数'),
        'notFind'=>array('code'=>-803,'msg'=>'没有库存啦'),
        'received'=>array('code'=>-804,'msg'=>'已领取'),
        'loading'=>array('code'=>-805,'msg'=>'请勿重复点击'),
        'receiveFailed'=>array('code'=>-806,'msg'=>'领取失败'),
    ),
    'activity'=>array(//报名
        'sign_up'=>array(
            'Registered'=>array('code'=>-901,'msg'=>'您已报名'),
            'notStart'=>array('code'=>-902,'msg'=>'活动未开始'),
            'isEnd'=>array('code'=>-903,'msg'=>'活动已结束'),
        ),
    ),
);